<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:forgeview="http://jboss.org/forge/view"	
	template="/resources/scaffold/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="id" value="#{ido4SaleOrderCustAddrBean.id}"/>
		<f:event type="preRenderView" listener="#{ido4SaleOrderCustAddrBean.retrieve}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="Create Ido 4Sale Order Cust Addr"/>

	<ui:define name="header">
		Ido 4Sale Order Cust Addr
	</ui:define>

	<ui:define name="subheader">
		<c:choose>
			<c:when test="#{!empty ido4SaleOrderCustAddrBean.id}">
				Edit existing Ido 4Sale Order Cust Addr
			</c:when>
			<c:otherwise>
				Create a new Ido 4Sale Order Cust Addr
			</c:otherwise>
		</c:choose>
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:form id="create">
			<h:messages globalOnly="true" styleClass="error"/>

			<h:panelGrid columnClasses="label,component,required" columns="3">
				<h:outputLabel for="ido4SaleOrderCustAddrBeanIdo4SaleOrderCustAddrIdo4SaleOrder" value="Ido 4Sale Order:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{ido4SaleOrderBean.converter}" id="ido4SaleOrderCustAddrBeanIdo4SaleOrderCustAddrIdo4SaleOrder" value="#{ido4SaleOrderCustAddrBean.ido4SaleOrderCustAddr.ido4SaleOrder}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{ido4SaleOrderBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="ido4SaleOrderCustAddrBeanIdo4SaleOrderCustAddrIdo4SaleOrder" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="ido4SaleOrderCustAddrBeanIdo4SaleOrderCustAddrSoCustAddrTypeNo" value="So Cust Addr Type No:"/>
				<h:panelGroup>
					<h:inputText id="ido4SaleOrderCustAddrBeanIdo4SaleOrderCustAddrSoCustAddrTypeNo" value="#{ido4SaleOrderCustAddrBean.ido4SaleOrderCustAddr.soCustAddrTypeNo}"/>
					<h:message for="ido4SaleOrderCustAddrBeanIdo4SaleOrderCustAddrSoCustAddrTypeNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="ido4SaleOrderCustAddrBeanIdo4SaleOrderCustAddrSoCustAddrNo" value="So Cust Addr No:"/>
				<h:panelGroup>
					<h:inputText id="ido4SaleOrderCustAddrBeanIdo4SaleOrderCustAddrSoCustAddrNo" maxLength="20" value="#{ido4SaleOrderCustAddrBean.ido4SaleOrderCustAddr.soCustAddrNo}"/>
					<h:message for="ido4SaleOrderCustAddrBeanIdo4SaleOrderCustAddrSoCustAddrNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="ido4SaleOrderCustAddrBeanIdo4SaleOrderCustAddrSoCustAddrMoo" value="So Cust Addr Moo:"/>
				<h:panelGroup>
					<h:inputText id="ido4SaleOrderCustAddrBeanIdo4SaleOrderCustAddrSoCustAddrMoo" maxLength="10" value="#{ido4SaleOrderCustAddrBean.ido4SaleOrderCustAddr.soCustAddrMoo}"/>
					<h:message for="ido4SaleOrderCustAddrBeanIdo4SaleOrderCustAddrSoCustAddrMoo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="ido4SaleOrderCustAddrBeanIdo4SaleOrderCustAddrSoCustAddrSoi" value="So Cust Addr Soi:"/>
				<h:panelGroup>
					<h:inputText id="ido4SaleOrderCustAddrBeanIdo4SaleOrderCustAddrSoCustAddrSoi" maxLength="100" value="#{ido4SaleOrderCustAddrBean.ido4SaleOrderCustAddr.soCustAddrSoi}"/>
					<h:message for="ido4SaleOrderCustAddrBeanIdo4SaleOrderCustAddrSoCustAddrSoi" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="ido4SaleOrderCustAddrBeanIdo4SaleOrderCustAddrSoCustAddrRoad" value="So Cust Addr Road:"/>
				<h:panelGroup>
					<h:inputText id="ido4SaleOrderCustAddrBeanIdo4SaleOrderCustAddrSoCustAddrRoad" maxLength="100" value="#{ido4SaleOrderCustAddrBean.ido4SaleOrderCustAddr.soCustAddrRoad}"/>
					<h:message for="ido4SaleOrderCustAddrBeanIdo4SaleOrderCustAddrSoCustAddrRoad" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="ido4SaleOrderCustAddrBeanIdo4SaleOrderCustAddrSoCustAddrBuilding" value="So Cust Addr Building:"/>
				<h:panelGroup>
					<h:inputText id="ido4SaleOrderCustAddrBeanIdo4SaleOrderCustAddrSoCustAddrBuilding" maxLength="100" value="#{ido4SaleOrderCustAddrBean.ido4SaleOrderCustAddr.soCustAddrBuilding}"/>
					<h:message for="ido4SaleOrderCustAddrBeanIdo4SaleOrderCustAddrSoCustAddrBuilding" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="ido4SaleOrderCustAddrBeanIdo4SaleOrderCustAddrSoCustAddrFloor" value="So Cust Addr Floor:"/>
				<h:panelGroup>
					<h:inputText id="ido4SaleOrderCustAddrBeanIdo4SaleOrderCustAddrSoCustAddrFloor" maxLength="50" value="#{ido4SaleOrderCustAddrBean.ido4SaleOrderCustAddr.soCustAddrFloor}"/>
					<h:message for="ido4SaleOrderCustAddrBeanIdo4SaleOrderCustAddrSoCustAddrFloor" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="ido4SaleOrderCustAddrBeanIdo4SaleOrderCustAddrSoCustAddrRoom" value="So Cust Addr Room:"/>
				<h:panelGroup>
					<h:inputText id="ido4SaleOrderCustAddrBeanIdo4SaleOrderCustAddrSoCustAddrRoom" maxLength="50" value="#{ido4SaleOrderCustAddrBean.ido4SaleOrderCustAddr.soCustAddrRoom}"/>
					<h:message for="ido4SaleOrderCustAddrBeanIdo4SaleOrderCustAddrSoCustAddrRoom" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="ido4SaleOrderCustAddrBeanIdo4SaleOrderCustAddrSoCustAddrName01" value="So Cust Addr Name 01:"/>
				<h:panelGroup>
					<h:inputText id="ido4SaleOrderCustAddrBeanIdo4SaleOrderCustAddrSoCustAddrName01" maxLength="100" value="#{ido4SaleOrderCustAddrBean.ido4SaleOrderCustAddr.soCustAddrName01}"/>
					<h:message for="ido4SaleOrderCustAddrBeanIdo4SaleOrderCustAddrSoCustAddrName01" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="ido4SaleOrderCustAddrBeanIdo4SaleOrderCustAddrSoCustAddr01Name" value="So Cust Addr 01Name:"/>
				<h:panelGroup>
					<h:inputText id="ido4SaleOrderCustAddrBeanIdo4SaleOrderCustAddrSoCustAddr01Name" maxLength="100" value="#{ido4SaleOrderCustAddrBean.ido4SaleOrderCustAddr.soCustAddr01Name}"/>
					<h:message for="ido4SaleOrderCustAddrBeanIdo4SaleOrderCustAddrSoCustAddr01Name" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="ido4SaleOrderCustAddrBeanIdo4SaleOrderCustAddrSoCustAddr02Name" value="So Cust Addr 02Name:"/>
				<h:panelGroup>
					<h:inputText id="ido4SaleOrderCustAddrBeanIdo4SaleOrderCustAddrSoCustAddr02Name" maxLength="100" value="#{ido4SaleOrderCustAddrBean.ido4SaleOrderCustAddr.soCustAddr02Name}"/>
					<h:message for="ido4SaleOrderCustAddrBeanIdo4SaleOrderCustAddrSoCustAddr02Name" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="ido4SaleOrderCustAddrBeanIdo4SaleOrderCustAddrSoCustAddr03Name" value="So Cust Addr 03Name:"/>
				<h:panelGroup>
					<h:inputText id="ido4SaleOrderCustAddrBeanIdo4SaleOrderCustAddrSoCustAddr03Name" maxLength="100" value="#{ido4SaleOrderCustAddrBean.ido4SaleOrderCustAddr.soCustAddr03Name}"/>
					<h:message for="ido4SaleOrderCustAddrBeanIdo4SaleOrderCustAddrSoCustAddr03Name" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="ido4SaleOrderCustAddrBeanIdo4SaleOrderCustAddrSoCustAddrPostcode" value="So Cust Addr Postcode:"/>
				<h:panelGroup>
					<h:inputText id="ido4SaleOrderCustAddrBeanIdo4SaleOrderCustAddrSoCustAddrPostcode" maxLength="20" value="#{ido4SaleOrderCustAddrBean.ido4SaleOrderCustAddr.soCustAddrPostcode}"/>
					<h:message for="ido4SaleOrderCustAddrBeanIdo4SaleOrderCustAddrSoCustAddrPostcode" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="ido4SaleOrderCustAddrBeanIdo4SaleOrderCustAddrSoCustAddrPhoneNo" value="So Cust Addr Phone No:"/>
				<h:panelGroup>
					<h:inputText id="ido4SaleOrderCustAddrBeanIdo4SaleOrderCustAddrSoCustAddrPhoneNo" maxLength="20" value="#{ido4SaleOrderCustAddrBean.ido4SaleOrderCustAddr.soCustAddrPhoneNo}"/>
					<h:message for="ido4SaleOrderCustAddrBeanIdo4SaleOrderCustAddrSoCustAddrPhoneNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="ido4SaleOrderCustAddrBeanIdo4SaleOrderCustAddrSoCustEmail" value="So Cust Email:"/>
				<h:panelGroup>
					<h:inputText id="ido4SaleOrderCustAddrBeanIdo4SaleOrderCustAddrSoCustEmail" maxLength="100" value="#{ido4SaleOrderCustAddrBean.ido4SaleOrderCustAddr.soCustEmail}"/>
					<h:message for="ido4SaleOrderCustAddrBeanIdo4SaleOrderCustAddrSoCustEmail" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
			</h:panelGrid>

			<div class="buttons">
				<h:commandLink value="Save" action="#{ido4SaleOrderCustAddrBean.update}" styleClass="btn btn-primary"/>
				<c:choose>
					<c:when test="#{!empty ido4SaleOrderCustAddrBean.id}">
						<h:link value="Cancel" outcome="view" styleClass="btn btn-primary">
							<f:param name="id" value="#{ido4SaleOrderCustAddrBean.id}"/>
						</h:link>
						<h:commandLink value="Delete" action="#{ido4SaleOrderCustAddrBean.delete}" styleClass="btn btn-primary"/>
					</c:when>
					<c:otherwise>
						<h:link value="Cancel" outcome="search" styleClass="btn btn-primary"/>
					</c:otherwise>
				</c:choose>
			</div>
		</h:form>
	</ui:define>

</ui:composition>